package democlone;

public class Peopro implements Cloneable{
    public int id;
    public String name;
    Money money =  new Money(9.1);

    public Peopro(int id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Peopro{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        Peopro tem = (Peopro) super.clone();
        tem.money = (Money) this.money.clone();

        return tem;
    }


}
